package com.shopping.pojo;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Arrays;

public class Appraise {

    int id;
    @NotNull
    int tradeId;
    int userId;
    @NotNull
    int storeId;
    @NotNull
    boolean isAnonymity;
    @Size(max = 200)
    String appraiseContent;
    @Min(1)@Max(5)
    int tradeGrade;
    @Min(1)@Max(5)
    int storeGrade;
    @Min(1)@Max(5)
    int transportGrade;
    String pic1;
    String pic2;
    String pic3;

    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }

    public int getTradeId() {
        return tradeId;
    }

    public void setTradeId(int tradeId) {
        this.tradeId = tradeId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getStoreId() {
        return storeId;
    }

    public void setStoreId(int storeId) {
        this.storeId = storeId;
    }

    public boolean isAnonymity() {
        return isAnonymity;
    }

    public void setAnonymity(boolean anonymity) {
        isAnonymity = anonymity;
    }

    public String getAppraiseContent() {
        return appraiseContent;
    }

    public void setAppraiseContent(String appraiseContent) {
        this.appraiseContent = appraiseContent;
    }

    public int getTradeGrade() {
        return tradeGrade;
    }

    public void setTradeGrade(int tradeGrade) {
        this.tradeGrade = tradeGrade;
    }

    public int getStoreGrade() {
        return storeGrade;
    }

    public void setStoreGrade(int storeGrade) {
        this.storeGrade = storeGrade;
    }

    public int getTransportGrade() {
        return transportGrade;
    }

    public void setTransportGrade(int transportGrade) {
        this.transportGrade = transportGrade;
    }

    public String getPic1() {
        return pic1;
    }

    public void setPic1(String pic1) {
        this.pic1 = pic1;
    }

    public String getPic2() {
        return pic2;
    }

    public void setPic2(String pic2) {
        this.pic2 = pic2;
    }

    public String getPic3() {
        return pic3;
    }

    public void setPic3(String pic3) {
        this.pic3 = pic3;
    }

    @Override
    public String toString() {
        return "Appraise{" +
                "id=" + id +
                ", tradeId=" + tradeId +
                ", userId=" + userId +
                ", storeId=" + storeId +
                ", isAnonymity=" + isAnonymity +
                ", appraiseContent='" + appraiseContent + '\'' +
                ", tradeGrade=" + tradeGrade +
                ", storeGrade=" + storeGrade +
                ", transportGrade=" + transportGrade +
                ", pic1=" + pic1 +
                ", pic2=" + pic2 +
                ", pic3=" + pic3 +
                '}';
    }
}
